const fs = require('fs')

module.exports = {
    index(id, res) {
        console.log('---获取到user的id')
        console.log(id)
        fs.readFile('./index.html', 'utf-8', (err, data) => {
            if(!err){
                // res.write(data)
                res.end(data)
            }
        })
    },
    user(postData, res) {
        // 处理业务逻辑
        console.log('---post-user-请求')
        console.log(postData)
    }
}